﻿using System.Collections.Generic;

namespace Firefly.Framework.Windows
{
    public class FontCollection : Dictionary<string, Font>
    {
        public new Font this[string key]
        {
            get
            {
                if (this.ContainsKey(key))
                { 
                    return base[key]; 
                }
                else
                { 
                    return base["Default"]; 
                }
            }
            set { base[key] = value; }
        }
    }
}
